home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / Tools / Development / envCPP31 / fd2pragma.bat next >
Encoding:
DOS Batch File  |  2002-01-01  |  2.1 KB  |  63 lines

  1. .key SFD/K/A,INCLUDES/K/A
  2. .bra {
  3. .ket }
  4.  
  5. echo >"t:fd2pragma.error" "INCOMPLETE"
  6.  
  7. if "{SFD}" eq ""
  8.  
  9.     echo "SYNTAX: fd2pragma.bat SFD/A,INCLUDES/A"
  10. else
  11.     if "{INCLUDES}" eq ""
  12.  
  13.         echo "SYNTAX: fd2pragma.bat SFD/A,INCLUDES/A"
  14.     else
  15.         failat 10
  16.  
  17.         stack 8192
  18.  
  19.         delete >nil: t:fdtopragma.log
  20.  
  21.         list "{SFD}/(#?.sfd)" to "t:sfd-inline-gcc.bat"  lformat "golded:add-ons/c++/tools/fd2pragma/fd2pragma >>t:fd2pragma-gcc.log   to=*"{INCLUDES}/inline*" special=40 from=*"golded:add-ons/c++/ndk_39/include/sfd/%s*""
  22.         list "{SFD}/(#?.sfd)" to "t:sfd-inline-vbcc.bat" lformat "golded:add-ons/c++/tools/fd2pragma/fd2pragma >>t:fd2pragma-vbcc.log  to=*"{INCLUDES}/inline*" special=70 from=*"golded:add-ons/c++/ndk_39/include/sfd/%s*""
  23.         list "{SFD}/(#?.sfd)" to "t:sfd-proto.bat"       lformat "golded:add-ons/c++/tools/fd2pragma/fd2pragma >>t:fd2pragma-proto.log to=*"{INCLUDES}/proto*"  special=38 from=*"golded:add-ons/c++/ndk_39/include/sfd/%s*""
  24.  
  25.         echo "Deleting old files..."
  26.         echo >>t:fd2pragma.log "Deleting old files..."
  27.  
  28.         programs/unprotect basedir="{INCLUDES}/proto"
  29.         programs/unprotect basedir="{INCLUDES}/inline"
  30.  
  31.         delete >nil: "{INCLUDES}/proto"  all quiet
  32.         delete >nil: "{INCLUDES}/inline" all quiet
  33.  
  34.         echo "Creating folders..."
  35.         echo >>t:fd2pragma.log "Creating folders..."
  36.  
  37.         makedir "{INCLUDES}/proto"
  38.         makedir "{INCLUDES}/inline"
  39.  
  40.         echo "Generating proto files..."
  41.         echo >>t:fd2pragma.log "Generating proto files..."
  42.  
  43.         execute "t:sfd-proto.bat"
  44.  
  45.         echo "Generating gcc inline files..."
  46.         echo >>t:fd2pragma.log "Generating gcc inline files..."
  47.  
  48.         execute "t:sfd-inline-gcc.bat"
  49.  
  50.         echo "Generating vbcc inline files..."
  51.         echo >>t:fd2pragma.log "Generating vbcc inline files..."
  52.  
  53.         execute "t:sfd-inline-vbcc.bat"
  54.  
  55.         echo >>"{INCLUDES}/inline/macros.h" "/** macros **/"
  56.  
  57.         echo "Prototypes generated."
  58.         echo >>t:fd2pragma.log  "Prototypes generated."
  59.  
  60.         delete >nil: "t:fd2pragma.error"
  61.     endif
  62. endif
  63.